﻿<Window x:Class="MoneyManagerNET.Presentation.View.RelocateContragentView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="RelocateCategoryView" Height="122" Width="406"
        
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        
        xmlns:vm="clr-namespace:MoneyManagerNET.Presentation.ViewModel;assembly=MoneyManagerNET.Presentation.ViewModel" 
        d:DataContext="{x:Static Member=vm:DesignTimeViewModelSupplier.RelocateContragent}"
        
        >
    <StackPanel>
        <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Relocate all source categopries to the destination category"/>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Relocate: "/>
            <Button Content="{Binding FromText}" Grid.Column="1" Command="{Binding Path=SelectFromContragentCommand}" />
            <TextBlock Text=" to: " Grid.Column="2"/>
            <Button  Grid.Column="3" Content="{Binding Path=ToText}" Command="{Binding Path=SelectToContragentCommand}" />

        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Click="Click_Ok">Ok</Button>
            <Button Click="Click_Cancel" IsCancel="True">Cancel</Button>

        </StackPanel>
    </StackPanel>
</Window>
